#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>

int main()
{
	//int*p = (int*)malloc(5 * sizeof(int));
	//if (p == NULL)
	//{
	//	perror("malloc");
	//	return 1;
	//}


	int* p = (int*)calloc(5, sizeof(int));
	if (p == NULL)
	{
		perror("malloc");
		return 1;
	}
	int i = 0;
	for (i = 0; i < 5; i++)
	{
		printf("%d ", *(p + i));
	}
	free(p);
	p = NULL;

	return 0;
}